home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
pctj8502.arc
/
NAMEPROC.BAS
< prev
next >
Wrap
BASIC Source File
|
1986-09-14
|
512b
|
19 lines
10 REM AN EXAMPLE USING NAMED PROCEDURES
20 REM
30 N = 0
40 loop
50 input "What is your name? ", NAME$
60 if NAME$ = "done" then quit
70 let N = N + 1
80 call SAY_HELLO_TO (NAME$)
90 print "Come again."
100 endloop
110 print N;"people visited."
120 REM
130 proc SAY_HELLO_TO(PERSON$),N
140 print "Hi ";PERSON$;". Nice to meet you!"
150 input "Please type a number ", N
160 print "Your number is ";N
170 endproc
180 end